<style>
    .dsj_pxpy > table > tbody > tr > td > input {
        width: 100px !important;
    }
</style>
<div class="body">
    <form class="form-horizontal" role="form" id="pxpyform" name="pxpyform"
          novalidate>
        <div class="table-responsive list-table-panel dsj_pxpy">
            <div class="list-table-title">
                <div class="table-title">
                    评先评优数据维护
                </div>
                <div class="table-tool">
                    <button class="btn btn-default1" ng-click="addPXPY()">新增</button>
                    <button class="btn btn-primary" ng-click="savePXPY(pxpyform.$valid)" form="pxpyform">保存</button>
                </div>
            </div>
            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                <thead>
                <tr>
                    <th>年度</th>
                    <th>先进基层党组织</th>
                    <th>优秀共产党员</th>
                    <th>优秀党务工作者</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="it in pxpy_dataList">
                    <td ng-class="{ 'has-error' : invalidValue($index,pxpyform,'pxpy_nd') &&  pxpyform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="1999" step="1"
                               name="pxpy_nd_{{$index}}"
                               ng-model="it.nd" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,pxpyform,'pxpy_xjjcdzz') &&  pxpyform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="pxpy_xjjcdzz_{{$index}}"
                               ng-model="it.xjjcdzz" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,pxpyform,'pxpy_yxgcdy') &&  pxpyform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="pxpy_yxgcdy_{{$index}}"
                               ng-model="it.yxgcdy" ng-required="true"/>
                    </td>
                    <td ng-class="{ 'has-error' : invalidValue($index,pxpyform,'pxpy_yxdwgzz') &&  pxpyform.$submitted}"
                        align="center">
                        <input type="number" autocomplete="off" class="form-control" min="0" step="1"
                               name="pxpy_yxdwgzz_{{$index}}"
                               ng-model="it.yxdwgzz" ng-required="true"/>
                    </td>
                    <td align="center">
                        <button class="btn td-btn bg-pink waves-effect"
                                ng-click="deletePYPX($index)" title="删除">
                            <!--<i class="material-icons td-icon">delete_forever</i>-->
                            删除
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
